import axios from './axios'

//登录
export function login(username, password ) {  
  return axios.post("/admin/login",{
    username,
    password
  })
}
// 获取登录信息
export function getInfo(){
  return axios.post("/admin/getinfo")
}
// 退出登录
export function logout(){
  return axios.post("admin/logout")
}
// 修改密码
export function updatePassword(data:object){
  return axios.post("admin/updatepassword",data)
}